package cn.tedu.tmall.front.mall.dao.repository.impl;

import cn.tedu.tmall.common.pojo.PageData;
import cn.tedu.tmall.front.mall.dao.mapper.OrderMapper;
import cn.tedu.tmall.front.mall.dao.repository.IOrderRepository;
import cn.tedu.tmall.front.mall.pojo.po.OrderPO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository
public class OrderRepositoryImpl implements IOrderRepository {


    @Autowired
    private OrderMapper orderMapper;

    @Override
    public Integer save(OrderPO orderPO) {

        return orderMapper.insert(orderPO);
    }

    @Override
    public PageData<OrderPO> pageOrderListByUserId(Long id, Integer pageSize, Integer pageNum) {
        return null;
    }
}
